<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  </head>
  
  <body>
  <center>
   <s:if test="#session.allBookType==null"><s:action name="showBookType" namespace="/book"></s:action></s:if>
  <table border="1">
  <tr>
  	<td>编号</td>
  	<td>名称</td>
  	<td>出版社</td>
  	<td>价格</td>
  	<td>库存量</td>
  	<td>类别</td>
  	<td>修改</td>
  </tr>
 	
    	<s:iterator value="%{allBook}" id="#show">
    	<tr>
    		<td><s:property value="bookCode"/></td>
    		<td><s:property value="bookName"/></td>
    		<td><s:property value="bookPress"/></td>
    		<td><s:property value="bookPrice"/></td>
    		<td><s:property value="bookNum"/></td>
    		<td><s:property value="#session.allBookType.get(bookType)"/></td>
    		<td><s:a value="getBookInfo.action" namespace="/book">
    			<s:param name="bookInfo.bookId"><s:property value="bookId"/></s:param>
    			修改</s:a> </td>
    	</tr>
    	</s:iterator>
   </table>
   </center>
   </body>
  
</html>
